Skip to content

Commit 0514f06

Browse files
committed
undectable object
1 parent fbdd724 commit 0514f06

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

spec.html

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3176,7 +3176,7 @@ <h1>ToBoolean ( _argument_ )</h1>
31763176
Object
31773177
</td>
31783178
<td>
3179-
Return *true*.
3179+
Return *false* if _argument_ is an undectable object otherwise return *true*.
31803180
</td>
31813181
</tr>
31823182
</tbody>
@@ -4072,8 +4072,8 @@ <h1>Abstract Equality Comparison</h1>
40724072
<emu-alg>
40734073
1. If Type(_x_) is the same as Type(_y_), then
40744074
1. Return the result of performing Strict Equality Comparison _x_ === _y_.
4075-
1. If _x_ is *null* and _y_ is *undefined*, return *true*.
4076-
1. If _x_ is *undefined* and _y_ is *null*, return *true*.
4075+
1. If _x_ is *null* or *undefined* and _y_ is *undefined* or an undectable object, return *true*.
4076+
1. If _x_ is *undefined* or an undectable object and _y_ is *null* or *undefined*, return *true*.
40774077
1. If Type(_x_) is Number and Type(_y_) is String, return the result of the comparison _x_ == ToNumber(_y_).
40784078
1. If Type(_x_) is String and Type(_y_) is Number, return the result of the comparison ToNumber(_x_) == _y_.
40794079
1. If Type(_x_) is Boolean, return the result of the comparison ToNumber(_x_) == _y_.
@@ -12464,6 +12464,14 @@ <h1>Runtime Semantics: Evaluation</h1>
1246412464
`"function"`
1246512465
</td>
1246612466
</tr>
12467+
<tr>
12468+
<td>
12469+
Object (an undetectable object)
12470+
</td>
12471+
<td>
12472+
`"undefined"`
12473+
</td>
12474+
</tr>
1246712475
<tr>
1246812476
<td>
1246912477
Object (non-standard exotic and does not implement [[Call]])

0 commit comments

Comments
 (0)